Completed
Push — master ( 6ebda8...21575d )
by Rafael S.
01:00
created

alaw.decodeSample   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 1
rs 10
1
/**
2
 * @fileoverview Externs for alawmulaw 5.0
3
 *
4
 * @see https://github.com/rochars/alawmulaw
5
 * @externs
6
 */
7
8
var alaw = {};
9
var mulaw = {};
10
11
// A-Law
12
/**
13
 * Encode a 16-bit linear PCM sample as 8-bit A-Law.
14
 * @param {number} sample A 16-bit PCM sample
15
 * @return {number}
16
 */
17
alaw.encodeSample = function(sample) {}
18
19
/**
20
 * Decode a 8-bit A-Law sample as 16-bit PCM.
21
 * @param {number} aLawSample The 8-bit A-Law sample
22
 * @return {number}
23
 */
24
alaw.decodeSample = function(aLawSample) {}
25
26
/**
27
 * Encode 16-bit linear PCM samples as 8-bit A-Law samples.
28
 * @param {!Int16Array} samples A array of 16-bit PCM samples.
29
 * @return {!Uint8Array}
30
 */
31
alaw.encode = function(samples) {}
32
33
/**
34
 * Decode 8-bit A-Law samples into 16-bit linear PCM samples.
35
 * @param {!Uint8Array} samples A array of 8-bit A-Law samples.
36
 * @return {!Int16Array}
37
 */
38
alaw.decode = function(samples) {}
39
40
// mu-Law
41
/**
42
 * Encode a 16-bit linear PCM sample as 8-bit mu-Law.
43
 * @param {number} sample A 16-bit PCM sample
44
 * @return {number}
45
 */
46
mulaw.encodeSample = function(sample) {}
47
48
/**
49
 * Decode a 8-bit mu-Law sample as 16-bit PCM.
50
 * @param {number} muLawSample The 8-bit mu-Law sample
51
 * @return {number}
52
 */
53
mulaw.decodeSample = function(muLawSample) {}
54
55
/**
56
 * Encode 16-bit linear PCM samples into 8-bit mu-Law samples.
57
 * @param {!Int16Array} samples A array of 16-bit PCM samples.
58
 * @return {!Uint8Array}
59
 */
60
mulaw.encode = function(samples) {}
61
62
/**
63
 * Decode 8-bit mu-Law samples into 16-bit PCM samples.
64
 * @param {!Uint8Array} samples A array of 8-bit mu-Law samples.
65
 * @return {!Int16Array}
66
 */
67
mulaw.decode = function(samples) {}